package com.xbongbong.pro.statistic.constant;

/**
 * @author: 汪腾伟
 * @date: Created in 2021/8/19 15:05
 * @description： 关联产品常量类
 */
public class RelatedProductConstant {

    /**
     * 关联产品名称
     */
    public static final String PRODUCT_LINK_NAME= "constant.relatedProduct.product_link_name";

    /**
     * 关联产品名称具体到产品
     */
    public static final String PRODUCT_LINK_NAME_SEN= "constant.relatedProduct.product_link_name_sen";

    /**
     * 产品子表单关联主业务的attr标识,比如产品-合同子表单关联合同的字段，虚拟出一个num_99
     */
    public static final String LINK_MAINBUSINESS_ATTR = "num_99";

    /**
     * 产品子表单关联产品业务的attr标识,比如产品-合同子表单关联产品的字段，虚拟出一个num_98
     */
    public static final String LINK_PRODUCT_ATTR = "num_98";

    /**
     * 关联表后面拼接字符串
     */
    public static final String ATTR_NAME_JOIN = "ID";

    /**
     * 代表是产品子表单关联
     */
    public static final String SUB_PRODUCT_TAG_TRUE = "1";

    /**
     * 代表不是产品子表单关联
     */
    public static final String SUB_PRODUCT_TAG_FALSE = "0";

    /**
     * 通用的产品子表单编号的attr
     */
    public static final String COMMON_PRODUCT_SERIAL_NO_ATTR = "text_91";


    /**
     * 通用的产品子表单的数据库产品编号对应实体的字段
     */
    public static final String COMMON_DB_PRODUCT_NO = "productNo";

    /**
     * 通用的产品子表单的数据库产品名称对应实体的字段
     */
    public static final String COMMON_DB_PRODUCT_NAME = "productName";

    /**
     * 产品子表单表中的产品id对应宽表的字段
     */
    public static final String PRODUCT_ID = "productId";

    /**
     * 产品子表单表中的产品单位对应宽表的字段
     */
    public static final String PRODUCT_UNIT = "productUnit";
    public static final String UNIT = "unit";

    /**
     * 产品子表单表中的备注对应宽表的字段
     */
    public static final String MEMO = "memo";

    /**
     * 产品子表单表中的批次对应宽表的字段
     */
    public static final String BATCH = "batch";

    /**
     * 产品子表单表中的批次对应宽表的字段
     */
    public static final String PRODUCE_DATE = "produceDate";

    /**
     * 产品子表单表中的保质期对应宽表的字段
     */
    public static final String GUARANTEE_PERIOD = "guaranteePeriod";

    public static final String COST = "cost";

    public static final String DISCOUNT = "discount";

    public static final String EMPTY = "";

    public static final String ATTRITION_RATE = "attritionRate";

    public static final String PRICE = "price";

    public static final String HISTORICAL_PRICE = "historicalPrice";

    public static final String PRODUCT_PRICE = "productPrice";

    public static final String MONEY = "money";

    /**
     * 产品子表单表中的产品数量对应宽表的字段
     */
    public static final String PRODUCT_NUM = "productNum";

    public static final String INSTOCK_NUM = "instockNum";

    public static final String OUTSTOCK_NUM = "outstockNum";

    public static final String ORI_NUM ="oriNum";
}
